package com.caifu.neums;

/**
 * ClassName : CognitionStatusEnum
 *
 * @author :  yb
 * @description ：
 * @date : 2020-11-16 10:36
 */
public enum  CognitionStatusEnum {

    /**
     *  认知情况 0：否 1：是
     */
    NO("0", "否")
    ,YES("1", "是");

    private String key;
    private String value;
    CognitionStatusEnum(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public static String getName(String key) {
        for (CognitionStatusEnum c : CognitionStatusEnum.values()) {
            if (c.getKey().equals(key)) {
                return c.value;
            }
        }
        return "";
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
